<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>画图板</title>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <style>
        body {
            margin: 0px;
            padding: 0px;
        }
        #myCanvas {
            border: 1px solid #9C9898;
        }
    </style>
</head>
<body>
<canvas id = "myCanvas" width = "800px" height = "500px"></canvas>
<br>
颜色选择:<input type="color" id="color">
<button id="rec">矩形</button>
<button id="line">直线</button>
<button id="triangle">三角形</button>
<button id="pencil">画笔</button>

<script src="draw.js"></script>
</body>
</html>